package com.xiangxiangjd.bean;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author 肖守凯
 * @since 2021-05-05
 */
@Data
@TableName("questionnaire")
@ApiModel(value="Questionnaire对象", description="")
public class Questionnaire extends Model<Questionnaire> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "问卷id")
    @TableId(value = "id",type = IdType.ID_WORKER_STR)
    private String id;

    @ApiModelProperty(value = "问卷说明")
    @TableField("questionnaire_explanation")
    private String questionnaireExplanation;

    @ApiModelProperty(value = "问卷名字")
    @TableField("questionnaire_title")
    private String questionnaireTitle;

    @ApiModelProperty(value = "0未发布 /1已经发布/2已失效")
    @TableField("questionnaire_status")
    private String questionnaireStatus;

    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private Integer userId;

    @ApiModelProperty(value = "问卷回答密码")
    @TableField("questionnaire_pwd")
    private String questionnairePwd;

    @ApiModelProperty(value = "问卷发布结束时间")
    @TableField("questionnaire_end_time")
    private String questionnaireEndTime;

    @ApiModelProperty(value = "创建时间")
    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private String createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private String updateTime;

}
